<?php
/**
 * Minhlog Minh_Resource SEO资源类
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 *
 * @category   Minh
 * @package    Minh_Resource
 * @copyright  Copyright (c) 2009-2010 Minh.Shu Minh.Shu@gmail.com
 * @license    New BSD License
 * @author     Minh.Shu
 * @version    $Id: Seo.php 2 2010-01-17 13:49:08Z Minh.Shu $
 *
 */

class Minh_Resource_Seo extends Zend_Application_Resource_ResourceAbstract
{
    protected $_seo;

    public function init ()
    {
        return $this->getSeo();
    }

    /**
     * 获取SEO资源对象
     * @return $seo
     */
    public function getSeo ()
    {
        if (null === $this->_seo) {
            $seo = $this->getOptions();
            Zend_Registry::set('seo', $seo);
            $this->_seo = $seo;
        }
        return $this->_seo;
    }
}